package it.unical.mat.aec.manageResult;

import it.unical.mat.aec.model.Test;

public class OrdinaStudente extends OrdinaTemplateMethod {

	@Override
	protected boolean compare(Test test1, Test test2) {
		String s1=test1.getStudente().getCognome()+" "+test1.getStudente().getNome();
		String s2=test2.getStudente().getCognome()+" "+test2.getStudente().getNome();
		if(s1.compareToIgnoreCase(s2)>=0)
			return true;
		return false;
	}

}
